<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{title}} - 图腾生命医学</title>
    <link rel="stylesheet" href="/apps/css/bootstrap.min.css">
    <link rel="stylesheet" href="/apps/css/fontawesome-free-6.4.0-web/css/all.css">
    <style>
        .conference-card {
            transition: transform 0.2s;
            height: 100%;
            cursor: pointer;
        }
        .conference-card:hover {
            transform: translateY(-5px);
        }
        .card-img-top {
            height: 200px;
            object-fit: cover;
        }
        .tag {
            font-size: 0.8rem;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .status-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
        }
    </style>
    <script src="/apps/js/baidu-tongji-mtx.js"></script>
</head>
<body>
    <div class="container py-4">
        <div class="row mb-4">
            <div class="col-12">
                <h1 class="mb-4">{{title}}</h1>
            </div>
        </div>

        <div class="row">
            {{#each conferences}}
            <div class="col-md-6 col-lg-4 mb-4">
                <div class="card conference-card" onclick="window.location.href='/apps/loyalty/conference/{{conference_code}}/materials'">
                    {{#if cover_image}}
                    <img src="{{cover_image}}" class="card-img-top" alt="{{conference_name}}">
                    {{/if}}
                    <div class="status-badge">
                        {{#if (eq status "upcoming")}}
                        <span class="badge badge-primary">即将开始</span>
                        {{else if (eq status "ongoing")}}
                        <span class="badge badge-success">进行中</span>
                        {{else}}
                        <span class="badge badge-secondary">已结束</span>
                        {{/if}}
                    </div>
                    <div class="card-body">
                        <h5 class="card-title">{{conference_name}}</h5>
                        <p class="card-text">
                            <small class="text-muted">
                                <i class="far fa-calendar-alt"></i> {{conference_date}} {{conference_time}}<br>
                                <i class="fas fa-map-marker-alt"></i> {{location}}<br>
                                <i class="fas fa-users"></i> {{speakers_count}}位专家<br>
                                {{#if contacts}}
                                <i class="fas fa-handshake"></i> {{contacts.length}}家参展单位
                                {{/if}}
                            </small>
                        </p>
                        <div class="mb-3">
                            {{#each tags}}
                            <span class="badge badge-light tag">{{this}}</span>
                            {{/each}}
                        </div>
                        <p class="card-text">{{description}}</p>
                        <div class="text-center mt-3">
                            <button class="btn btn-info" onclick="event.stopPropagation(); window.location.href='/apps/loyalty/conference/{{conference_code}}/materials'">
                                <i class="fas fa-eye"></i> 查看详情
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            {{/each}}
        </div>
    </div>

    <script src="/apps/js/jquery.min.js"></script>
    <script src="/apps/js/bootstrap.bundle.min.js"></script>
</body>
</html> 